package com.zhang.crm.mapper;

import com.zhang.crm.pojo.TActivity;
import com.zhang.crm.pojo.req.ActivitySearchPageReq;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TActivitymapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TActivity record);

    int insertSelective(TActivity record);

    TActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TActivity record);

    int updateByPrimaryKey(TActivity record);

    List<TActivity> selectActivityList();

    TActivity selectByPrimaryKeyDetails(Integer activityId);

    int batchDelActivity(@Param("activityIds") List<Integer> activityIds);

    List<TActivity> selectQueryActivityList(ActivitySearchPageReq activityReq);
}